import { request } from '../service'
import IBaseObj from '#/index'

const modifyConfig = (data: IBaseObj) =>
  request({
    url: '/project/config/modify',
    method: 'POST',
    data,
  })

const getConfig = (pid: string) =>
  request({
    url: `/project/config/pid/${pid}`,
    method: 'GET',
  })

export default {
  modifyConfig,
  getConfig,
}
